package com.remrbs.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.remrbs.domain.Category;
import com.remrbs.mapper.CategoryMapper;
@Service
public class CategoryService{

    @Resource
    private CategoryMapper categoryMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return categoryMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(Category record) {
        return categoryMapper.insert(record);
    }

    
    public int insertSelective(Category record) {
        return categoryMapper.insertSelective(record);
    }

    
    public Category selectByPrimaryKey(Integer id) {
        return categoryMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(Category record) {
        return categoryMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(Category record) {
        return categoryMapper.updateByPrimaryKey(record);
    }

    
    public int updateBatch(List<Category> list) {
        return categoryMapper.updateBatch(list);
    }

}
